<!-- A simple element that just displays a list of the surveys passed in
	 through the surveys_list variable -->
<ul type="disc">
	<?php foreach ($surveys_list as $survey): ?>
		<li> <?php echo($html->link($survey['Survey']['name'], array('controller' => 'surveys', 'action' => 'view', '0' => $survey['Survey']['id']))); ?>
		<?php 
			$group_id = $session->read('Auth.User.group_id');
			if($group_id == 1 || group_id == 2) {
				echo $html->image('chart.gif', array(
				    'alt' => 'View Results',
					'title' => 'View Results',
    				'url' => array('controller' => 'presenters', 'action' => 'show_survey_results', '0' => $survey['Survey']['id'])
				));
			}
		?>
		</li>
	<?php endforeach; ?>
</ul>